<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:replace="/pc/common::head(~{::custom_settings})">
		<th:block th:fragment="custom_settings">
			<title>商户-新增/编辑</title>
			<link type="text/css" rel="stylesheet" th:href="@{{css}/pc/common/public.css(css=${css})}"/>
			<style>
				table tr .lg {padding-top: 10px; text-align:right;}
				.search-text{border-radius:5px;}
				.treeselect_title span{border-radius:5px;}
				.select_province span{border-radius:5px;}
				.search-area{border-radius:5px;}
			</style>
			<script th:inline="javascript">
		    	var marketlist = [[${marketlist}]];
			</script>
		</th:block>
	</head>
	<body>
		<div class="mini-fitboxs">
			<form id="form">
				<div id="entityid" class="search-texthide"></div>
			    <table class="around_list" style=" margin:0 auto;width:100%;">
			        <tr>
			            <td class="lg"><label>商户名称：</label></td>
			            <td class="lg">
			                <div id="merchantname" class="search-textbox" rules="required,length:1-50" width="400" height="28" style="float:left;"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>商户电话：</label></td>
			            <td class="lg">
			                <div id="merchantphone" class="search-textbox" rules="required,mobile" width="400" height="28" style="float:left;"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>身份证号：</label></td>
			            <td class="lg">
			                <div id="idnumber" class="search-textbox" rules="required,length:18-18" width="400" height="28" style="float:left;"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>账户名称：</label></td>
			            <td class="lg">
			                <div id="accountname" class="search-textbox" rules="required" width="400" height="28" style="float:left;"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>银行卡号：</label></td>
			            <td class="lg">
			                <div id="bcnumber" class="search-textbox" rules="required,length:1-50" width="400" height="28" style="float:left;"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>开户银行：</label></td>
			            <td class="lg">
			                <div id="parentbank" class="search-select" idField="entityid" textField="bankname" width="400" height="26" placeHolder="请选择或者填写" onvaluechanged="parentbankChanged" onvalidate="parentbankValidate" onblur="parentbankBlur" style="float:left;"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>开户网点：</label></td>
			            <td class="lg">
			                <div id="bankid" class="search-select" idField="entityid" textField="bankname" width="400" height="26" placeHolder="请选择或者填写" style="float:left;" onvalidate="bankValidate"></div>
			            </td>
			        </tr>
			        <tr>
                        <td class="lg" ><label>市场入驻：</label></td>
                        <td class="lg">
                            <table id="table_bud" class="segment-information">
                                <tr>
                                    <th width="150" align="center">市　场</th>
                                    <th width="150" align="center">入驻摊位</th>
                                    <th width="80" align="center">操　作</th>
                                </tr>
                            </table>
                        </td>
                   </tr>
			        <tr>
			            <td class="lg"><label>身份证正面：</label></td>
			            <td class="lg">
			            	<div th:replace="/pc/webuploader/webuploader :: uploader('idpositive','width: 500px;')"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>身份证反面：</label></td>
			            <td class="lg">
			            	<div th:replace="/pc/webuploader/webuploader :: uploader('idnegative','width: 500px;')"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>银行卡：</label></td>
			            <td class="lg">
			            	<div th:replace="/pc/webuploader/webuploader :: uploader('bankcard','width: 500px;')"></div>
			            </td>
			        </tr>
			        <tr>
			            <td class="lg"><label>营业执照：</label></td>
			            <td class="lg">
			            	<div th:replace="/pc/webuploader/webuploader :: uploader('businesslicense','width: 500px;')"></div>
			            </td>
			        </tr>
			    </table>
			</form>
		</div>
		<div class="org-btn">
		    <input class="org-save" type="button" onclick="fupload()" value="保存"/>
		    <input class="org-close" type="button" onclick="window.closeWindow()" value="关闭"/>
		</div>
		<script type="text/javascript" th:src="@{{js}/pc/merchants/updatepage.js(js=${js})}"></script>
	</body>
	
</html>